package com.vinku.app.service;

import java.util.Random;
import java.util.concurrent.TimeUnit;

/**
 * @Author Vinku
 * @Date 2023/2/7
 * @Description
 */
public class UserService {

    public String sayHello() {
        return "Hello";
    }

    public void sleepRandom() {
        try {
            TimeUnit.MILLISECONDS.sleep(new Random().nextInt(1000));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
